package com.jigsawapp.movies.common;

import android.content.Context;
import android.content.Intent;
import android.widget.Toast;

import com.jigsawapp.movies.ui.MainActivity;

/**
 * Created by jigsaw on 2016/3/4.
 * Email: fadeblack307@163.com
 */
public class UIHelper {

    public static void goMainActivity(Context context) {
        Intent intent = new Intent(context, MainActivity.class);
        context.startActivity(intent);
    }

    /**
     * 弹出Toast消息
     *
     * @param msg
     */
    public static void toastMessage(Context cont, String msg) {
        Toast.makeText(cont, msg, Toast.LENGTH_SHORT).show();
    }
}
